home *** CD-ROM | disk | FTP | other *** search
-
-
-
- NNNNAAAANNNNOOOOSSSSLLLLEEEEEEEEPPPP((((2222)))) NNNNAAAANNNNOOOOSSSSLLLLEEEEEEEEPPPP((((2222))))
-
-
-
- NNNNAAAAMMMMEEEE
- nanosleep - high resolution sleep
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ttttiiiimmmmeeee....hhhh>>>>
-
- iiiinnnntttt nnnnaaaannnnoooosssslllleeeeeeeepppp((((ccccoooonnnnsssstttt ssssttttrrrruuuucccctttt ttttiiiimmmmeeeessssppppeeeecccc ****rrrrqqqqttttpppp,,,, ssssttttrrrruuuucccctttt ttttiiiimmmmeeeessssppppeeeecccc ****rrrrmmmmttttpppp))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The _n_a_n_o_s_l_e_e_p system call causes the current thread to suspend until
- either the time interval specified by the rrrrqqqqttttpppp argument has elapsed or a
- signal is delivered to the calling thread and its action is to invoke a
- signal-handling function or terminate the process.
-
- The suspension time will be rounded to a multiple of the underlying
- system-provided sleep resolution. For real time processes, or for
- processes that have requested a timeout of less than the base clock tick
- of 10 milliseconds, this resolution is defined by the variable ffffaaaasssstttthhhhzzzz
- which may be examined or modified using _s_y_s_t_u_n_e(_1_M). Otherwise, the
- resolution is determined by the length of a clock tick. The length of a
- clock tick is defined by CCCCLLLLKKKK____TTTTCCCCKKKK in the include file <_l_i_m_i_t_s._h>.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sleep(3), sginap(2), alarm(2), pause(2), schedctl(2), timers(5),
- realtime(5).
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- If the calling thread remains suspended for the requested time interval,
- _n_a_n_o_s_l_e_e_p returns 0. If, however, the thread is interrupted prematurely
- by a signal, it returns -1 and sets _e_r_r_n_o to indicate the interruption.
- If the rrrrmmmmttttpppp argument is non-NULL, the ttttiiiimmmmeeeessssppppeeeecccc structure referenced by it
- contains the amount of time remaining in the interval.
-
- If any of the following conditions occur, _n_a_n_o_s_l_e_e_p returns -1 and sets
- _e_r_r_n_o to indicate the error:
-
- [EFAULT] An argument address referenced invalid memory.
-
- [EINTR] _n_a_n_o_s_l_e_e_p was interrupted by a signal.
-
- [EINVAL] The rrrrqqqqttttpppp argument specified a nanosecond value less than
- zero or greater than
- or equal to 1000 million.
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-